//
//  THNormalEmptyCell.m
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//
#import "THNormalEmptyCell.h"

@implementation THNormalEmptyCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        [self createUI];
    }
    return self;
}

- (void)createUI
{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.contentView.backgroundColor = ColorFromHex(0xededed);
}

+ (void)registerToTable:(UITableView *)table
{
    [table.configure registerClass:self.class forCellReuseIdentifier:@"THNormalEmptyCell" config:[KCellModelConfig configWithModelClass:KCommonTableModel.class configBlock:^(__kindof THNormalEmptyCell *cell, KCommonTableModel *model, NSIndexPath *indexPath) {
        
    } selectBlock:^(id model, NSIndexPath *indexPath) {
        
    } rowHeight:UITableViewAutomaticDimension]];
}

@end
